/** @format */

import axios from '@/utils/request';

// 入库记录分页查询
export function pageList(params) {
  return axios.get('/rfid/inBill/page', { params: params });
}

// 入库记录详情
export function getDetail(billNumber) {
  return axios.get('/rfid/inBill/queryOne', { params: {billNumber: billNumber} });
}

// 档案、档案盒入库分页查询
export function inPageList(params) {
  return axios.get('/rfid/outBillDetails/page', { params: params });
}

// 档案入库
export function archivesIn(data) {
  return axios.post('/rfid/inBill/archivesIn', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  });
}

// 档案盒入库
export function boxIn(data) {
  return axios.post('/rfid/inBill/boxIn', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  });
}
